var app = getApp();
const pathUrl = app.globalData.pathUrl;
Page({
    data: {
        index:0,
        pathUrl: pathUrl,
        openId: '',
        proNo:'',
        proMark: '', 
        bpmStatus:''
    },
    onLoad: function (e) { 
        var openId = wx.getStorageSync('openId');
        var proNo = e.proNo;
        var proName = e.proName;
        this.setData({
            openId: openId,
            proNo: proNo,
            bpmStatus: e.bpmStatus
            
        })
    },
    goHome:function(){
        wx.switchTab({
            url: "/pages/index/index"
        })
    },
    radioChange:function(e){
        this.setData({
            proMark: e.detail.value
        });
    },
    
  goNext: function (e) {
    var proNo = e.currentTarget.dataset.prono;
    var proMark = e.currentTarget.dataset.promark;
      var bpmStatus = e.currentTarget.dataset.bpmstatus;
    if (proMark){
        wx.navigateTo({
            url: "/pages/posXjTwo/posXjTwo?proNo=" + proNo + '&proMark=' + proMark + '&bpmStatus=' + bpmStatus
        });
    }else{
        wx.showModal({
            title: '提示',
            content: '您还没选择选项，请选择',
            confirmColor: '#7aa6d1',
            showCancel: false
        })
    }
    
  },
    // 
    goTest:function(e){
      console.info(e.currentTarget.dataset.bpmstatus)
      wx.navigateTo({
        url: "/pages/orderManagementb/orderManagementb?bpmstatus=" + e.currentTarget.dataset.bpmstatus
      })
    },
    onReady: function () {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {

    }
})